package com.xyh.transaction.response;

import com.xyh.transaction.common.Constant;
import lombok.Getter;

@Getter
public enum ResponseCode {
    ILLEGAL_TOKEN(Constant.ILLEGAL_TOKEN_DETAIL,10001),
    EXPIRE_TOKEN(Constant.EXPIRE_TOKEN_DETAIL,10002),
    EXITED(Constant.EXITED_DETAIL,10003),

    NOT_FOUND_USER(Constant.NOT_FOUND_USER,20001);

    private final String detail;

    private final Integer code;

    ResponseCode(String detail,Integer code){
        this.detail = detail;
        this.code = code;
    }

}
